<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CodeCraft - 技术教程与工具创作平台</title>
  <!-- 引入外部资源 -->
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  
  <!-- 配置Tailwind自定义主题 -->
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#3B82F6', // 主色调：亮蓝色（技术感+亲和力）
            python: '#3776AB',
            java: '#007396',
            mysql: '#00758F',
            excel: '#217346',
            web: '#F06292',
            neutral: '#F8FAFC',
            dark: '#1E293B',
          },
          fontFamily: {
            sans: ['Inter', 'system-ui', 'sans-serif'],
          },
        },
      }
    }
  </script>
  
  <style type="text/tailwindcss">
    @layer utilities {
      .content-auto {
        content-visibility: auto;
      }
      .text-gradient {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
      }
      .card-hover {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }
      .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1);
      }
    }
  </style>
</head>

<body class="bg-white text-dark">
  <!-- 导航栏 -->
  <header id="navbar" class="fixed w-full top-0 z-50 transition-all duration-300 bg-white/95 backdrop-blur-sm shadow-sm">
    <div class="container mx-auto px-4 py-3 flex items-center justify-between">
      <!-- Logo -->
      <a href="#" class="flex items-center gap-2">
        <div class="w-10 h-10 rounded-lg bg-gradient-to-br from-primary to-blue-400 flex items-center justify-center">
          <i class="fa fa-code text-white text-xl"></i>
        </div>
        <span class="text-xl font-bold bg-gradient-to-r from-primary to-blue-500 text-gradient">CodeCraft</span>
      </a>
      
      <!-- 导航菜单 - 桌面端 -->
      <nav class="hidden md:flex items-center gap-8">
        <a href="#tutorials" class="font-medium text-primary border-b-2 border-primary pb-1">教程中心</a>
        <a href="#tools" class="font-medium hover:text-primary transition-colors">工具库</a>
        <a href="#ideas" class="font-medium hover:text-primary transition-colors">创意对接</a>
        <a href="#community" class="font-medium hover:text-primary transition-colors">学习社区</a>
      </nav>
      
      <!-- 登录/注册按钮 -->
      <div class="flex items-center gap-4">
        <a href="#login" class="hidden md:flex items-center gap-2 px-4 py-2 text-primary border border-primary rounded-lg hover:bg-primary/5 transition-colors">
          <i class="fa fa-user-circle-o"></i> 登录
        </a>
        <a href="#register" class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors shadow-md hover:shadow-lg">
          我的学习空间
        </a>
        
        <!-- 移动端菜单按钮 -->
        <button id="menuBtn" class="md:hidden text-dark text-xl">
          <i class="fa fa-bars"></i>
        </button>
      </div>
    </div>
    
    <!-- 移动端菜单 -->
    <div id="mobileMenu" class="md:hidden hidden bg-white border-t">
      <div class="container mx-auto px-4 py-3 flex flex-col gap-3">
        <a href="#tutorials" class="py-2 font-medium text-primary">教程中心</a>
        <a href="#tools" class="py-2 font-medium hover:text-primary">工具库</a>
        <a href="#ideas" class="py-2 font-medium hover:text-primary">创意对接</a>
        <a href="#community" class="py-2 font-medium hover:text-primary">学习社区</a>
        <a href="#login" class="py-2 font-medium hover:text-primary">登录</a>
      </div>
    </div>
  </header>

  <main>
    <!-- 1. 核心价值区 - 突出教程与工具 -->
    <section class="pt-32 pb-20 md:pt-40 md:pb-32 bg-gradient-to-br from-blue-50 to-indigo-50">
      <div class="container mx-auto px-4">
        <div class="flex flex-col md:flex-row items-center gap-10">
          <!-- 文字内容 - 聚焦教程与工具价值 -->
          <div class="md:w-1/2 space-y-6">
            <h5 class="text-primary font-medium">技术教程 · 实用工具 · 创意对接</h5>
            <h1 class="text-[clamp(2rem,5vw,3.5rem)] font-bold leading-tight">
              在这里，<br>
              <span class="bg-gradient-to-r from-python to-primary text-gradient">学技术、用工具、实现创意</span>
            </h1>
            <p class="text-lg text-gray-600 max-w-lg">
              从零基础教程到实战工具，从创意萌芽到项目落地。我们提供系统化学习路径，让你边学边用，快速掌握实用技能。
            </p>
            <div class="flex flex-wrap gap-4 pt-4">
              <a href="#tutorials" class="px-8 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-all shadow-lg hover:shadow-xl">
                开始学习 <i class="fa fa-play-circle ml-2"></i>
              </a>
              <a href="#tools" class="px-8 py-3 bg-white text-primary border border-primary rounded-lg hover:bg-primary/5 transition-all">
                浏览工具库
              </a>
            </div>
            
            <!-- 核心功能快速入口 -->
            <div class="pt-6 bg-white/80 backdrop-blur-sm p-4 rounded-xl border border-gray-100">
              <div class="flex items-center justify-between mb-3">
                <span class="font-medium">核心功能</span>
                <span class="text-sm text-primary">已有12,547名学习者</span>
              </div>
              <div class="grid grid-cols-3 gap-2 text-sm">
                <a href="#tutorials" class="flex flex-col items-center p-2 rounded-lg hover:bg-primary/5 transition-colors">
                  <i class="fa fa-book text-primary mb-1"></i>
                  <span>教程</span>
                </a>
                <a href="#tools" class="flex flex-col items-center p-2 rounded-lg hover:bg-primary/5 transition-colors">
                  <i class="fa fa-wrench text-primary mb-1"></i>
                  <span>工具</span>
                </a>
                <a href="#ideas" class="flex flex-col items-center p-2 rounded-lg hover:bg-primary/5 transition-colors">
                  <i class="fa fa-lightbulb-o text-primary mb-1"></i>
                  <span>创意对接</span>
                </a>
              </div>
            </div>
          </div>
          
          <!-- 教程与工具预览 - 具象化核心价值 -->
          <div class="md:w-1/2 relative">
            <div class="absolute -top-5 -left-5 w-20 h-20 bg-python/10 rounded-full"></div>
            <div class="absolute -bottom-5 -right-5 w-32 h-32 bg-web/10 rounded-full"></div>
            
            <!-- 教程与工具界面组合预览 -->
            <div class="relative z-10 grid grid-cols-2 gap-4">
              <!-- 教程卡片 -->
              <div class="bg-white rounded-xl shadow-xl overflow-hidden border border-gray-100 transform rotate-2 card-hover">
                <div class="h-3 bg-python"></div>
                <div class="p-4">
                  <div class="text-xs text-gray-500 mb-2">Python · 基础</div>
                  <h3 class="font-bold text-sm mb-3">30天入门Python编程</h3>
                  <div class="flex items-center text-xs text-gray-500">
                    <i class="fa fa-clock-o mr-1"></i> 15小时课程
                  </div>
                </div>
              </div>
              
              <!-- 工具卡片 -->
              <div class="bg-white rounded-xl shadow-xl overflow-hidden border border-gray-100 transform -rotate-3 card-hover">
                <div class="h-3 bg-primary"></div>
                <div class="p-4">
                  <div class="text-xs text-gray-500 mb-2">实用工具</div>
                  <h3 class="font-bold text-sm mb-3">Excel批量处理助手</h3>
                  <div class="flex items-center text-xs text-gray-500">
                    <i class="fa fa-download mr-1"></i> 1.2k次使用
                  </div>
                </div>
              </div>
              
              <!-- 创意对接卡片 -->
              <div class="bg-white rounded-xl shadow-xl overflow-hidden border border-gray-100 transform -rotate-2 card-hover">
                <div class="h-3 bg-green-500"></div>
                <div class="p-4">
                  <div class="text-xs text-gray-500 mb-2">创意对接</div>
                  <h3 class="font-bold text-sm mb-3">数据可视化工具开发</h3>
                  <div class="flex items-center text-xs text-gray-500">
                    <i class="fa fa-user mr-1"></i> 3人正在参与
                  </div>
                </div>
              </div>
              
              <!-- 学习进度卡片 -->
              <div class="bg-white rounded-xl shadow-xl overflow-hidden border border-gray-100 transform rotate-3 card-hover">
                <div class="h-3 bg-purple-500"></div>
                <div class="p-4">
                  <div class="text-xs text-gray-500 mb-2">你的进度</div>
                  <h3 class="font-bold text-sm mb-3">Python课程完成35%</h3>
                  <div class="w-full bg-gray-100 rounded-full h-1.5 text-xs">
                    <div class="bg-purple-500 h-1.5 rounded-full" style="width: 35%"></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 2. 教程中心 - 核心板块 -->
    <section id="tutorials" class="py-16 bg-white">
      <div class="container mx-auto px-4">
        <div class="text-center mb-12">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4">系统化教程中心</h2>
          <p class="text-gray-600 max-w-2xl mx-auto">从入门到精通，结构化学习路径帮你快速掌握实用技能</p>
        </div>
        
        <!-- 教程分类 -->
        <div class="flex overflow-x-auto pb-4 mb-8 gap-3 md:justify-center">
          <button class="px-5 py-2 bg-primary text-white rounded-full whitespace-nowrap">全部教程</button>
          <button class="px-5 py-2 bg-gray-100 hover:bg-gray-200 rounded-full whitespace-nowrap transition-colors">Python编程</button>
          <button class="px-5 py-2 bg-gray-100 hover:bg-gray-200 rounded-full whitespace-nowrap transition-colors">数据分析</button>
          <button class="px-5 py-2 bg-gray-100 hover:bg-gray-200 rounded-full whitespace-nowrap transition-colors">自动化工具</button>
          <button class="px-5 py-2 bg-gray-100 hover:bg-gray-200 rounded-full whitespace-nowrap transition-colors">Web开发</button>
          <button class="px-5 py-2 bg-gray-100 hover:bg-gray-200 rounded-full whitespace-nowrap transition-colors">数据库</button>
        </div>
        
        <!-- 精选教程 -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
          <!-- 教程1 -->
          <div class="bg-white rounded-xl overflow-hidden border border-gray-100 shadow-sm hover:shadow-md transition-shadow card-hover">
            <div class="relative">
              <img src="https://picsum.photos/id/0/600/300" alt="Python入门教程" class="w-full h-48 object-cover">
              <div class="absolute top-3 left-3 bg-python text-white text-xs px-2 py-1 rounded">Python</div>
              <div class="absolute top-3 right-3 bg-black/60 text-white text-xs px-2 py-1 rounded flex items-center gap-1">
                <i class="fa fa-clock-o"></i> 15小时
              </div>
            </div>
            <div class="p-5">
              <h3 class="font-bold text-lg mb-2">Python零基础到实战：30天掌握核心技能</h3>
              <p class="text-gray-600 text-sm mb-4">从环境搭建到实战项目，循序渐进掌握Python编程，适合完全零基础的学习者。</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center gap-2">
                  <img src="https://picsum.photos/id/1005/40/40" alt="讲师头像" class="w-8 h-8 rounded-full">
                  <span class="text-sm text-gray-600">李教授 · 10年经验</span>
                </div>
                <button class="text-sm bg-primary/10 text-primary px-3 py-1 rounded-lg hover:bg-primary/20 transition-colors">
                  加入学习
                </button>
              </div>
            </div>
          </div>
          
          <!-- 教程2 -->
          <div class="bg-white rounded-xl overflow-hidden border border-gray-100 shadow-sm hover:shadow-md transition-shadow card-hover">
            <div class="relative">
              <img src="https://picsum.photos/id/180/600/300" alt="Excel自动化教程" class="w-full h-48 object-cover">
              <div class="absolute top-3 left-3 bg-excel text-white text-xs px-2 py-1 rounded">自动化</div>
              <div class="absolute top-3 right-3 bg-black/60 text-white text-xs px-2 py-1 rounded flex items-center gap-1">
                <i class="fa fa-clock-o"></i> 8小时
              </div>
            </div>
            <div class="p-5">
              <h3 class="font-bold text-lg mb-2">Python+Excel：职场效率提升指南</h3>
              <p class="text-gray-600 text-sm mb-4">学习用Python自动化处理Excel表格，告别重复劳动，让工作效率提升80%。</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center gap-2">
                  <img src="https://picsum.photos/id/1012/40/40" alt="讲师头像" class="w-8 h-8 rounded-full">
                  <span class="text-sm text-gray-600">王老师 · 数据分析师</span>
                </div>
                <button class="text-sm bg-primary/10 text-primary px-3 py-1 rounded-lg hover:bg-primary/20 transition-colors">
                  加入学习
                </button>
              </div>
            </div>
          </div>
          
          <!-- 教程3 -->
          <div class="bg-white rounded-xl overflow-hidden border border-gray-100 shadow-sm hover:shadow-md transition-shadow card-hover">
            <div class="relative">
              <img src="https://picsum.photos/id/160/600/300" alt="爬虫教程" class="w-full h-48 object-cover">
              <div class="absolute top-3 left-3 bg-web text-white text-xs px-2 py-1 rounded">爬虫开发</div>
              <div class="absolute top-3 right-3 bg-black/60 text-white text-xs px-2 py-1 rounded flex items-center gap-1">
                <i class="fa fa-clock-o"></i> 12小时
              </div>
            </div>
            <div class="p-5">
              <h3 class="font-bold text-lg mb-2">Python网络爬虫：数据采集实战</h3>
              <p class="text-gray-600 text-sm mb-4">从基础爬虫到反爬策略，学习如何合法采集网络数据，适合数据分析入门。</p>
              <div class="flex justify-between items-center">
                <div class="flex items-center gap-2">
                  <img src="https://picsum.photos/id/1025/40/40" alt="讲师头像" class="w-8 h-8 rounded-full">
                  <span class="text-sm text-gray-600">张工程师 · 全栈开发</span>
                </div>
                <button class="text-sm bg-primary/10 text-primary px-3 py-1 rounded-lg hover:bg-primary/20 transition-colors">
                  加入学习
                </button>
              </div>
            </div>
          </div>
        </div>
        
        <div class="text-center mt-10">
          <a href="#" class="inline-flex items-center gap-2 text-primary font-medium hover:underline">
            查看全部教程 <i class="fa fa-arrow-right"></i>
          </a>
        </div>
      </div>
    </section>

    <!-- 3. 工具库 - 核心板块 -->
    <section id="tools" class="py-16 bg-neutral">
      <div class="container mx-auto px-4">
        <div class="text-center mb-12">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4">实用工具库</h2>
          <p class="text-gray-600 max-w-2xl mx-auto">边学边用，将知识转化为生产力，所有工具均配有详细教程</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
          <!-- 工具1 -->
          <div class="bg-white rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow border border-gray-100 card-hover">
            <div class="flex justify-between items-start mb-4">
              <div class="flex items-center gap-2">
                <div class="w-10 h-10 bg-python/10 rounded-lg flex items-center justify-center">
                  <i class="fa fa-file-excel-o text-python"></i>
                </div>
                <h4 class="font-bold">Excel批量处理助手</h4>
              </div>
              <button class="text-gray-400 hover:text-primary transition-colors">
                <i class="fa fa-star-o"></i>
              </button>
            </div>
            <p class="text-gray-600 text-sm mb-4">一键处理重复数据、格式统一、生成报表，提升80%工作效率</p>
            
            <!-- 关联教程 -->
            <div class="mb-4 p-3 bg-gray-50 rounded-lg border border-gray-100">
              <div class="text-xs text-gray-500 mb-1">关联教程</div>
              <a href="#" class="text-sm text-primary hover:underline">《Python操作Excel完全指南》</a>
            </div>
            
            <div class="flex justify-between items-center">
              <div class="flex items-center gap-1 text-amber-500 text-sm">
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star-half-o"></i>
                <span class="text-gray-500 ml-1">4.5 (128)</span>
              </div>
              <button class="text-sm bg-primary/10 text-primary px-3 py-1 rounded-lg hover:bg-primary/20 transition-colors">
                立即使用
              </button>
            </div>
          </div>
          
          <!-- 工具2 -->
          <div class="bg-white rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow border border-gray-100 card-hover">
            <div class="flex justify-between items-start mb-4">
              <div class="flex items-center gap-2">
                <div class="w-10 h-10 bg-python/10 rounded-lg flex items-center justify-center">
                  <i class="fa fa-scissors text-python"></i>
                </div>
                <h4 class="font-bold">文本处理工具箱</h4>
              </div>
              <button class="text-gray-400 hover:text-primary transition-colors">
                <i class="fa fa-star-o"></i>
              </button>
            </div>
            <p class="text-gray-600 text-sm mb-4">批量提取、替换、格式化文本内容，支持多种规则自定义</p>
            
            <!-- 关联教程 -->
            <div class="mb-4 p-3 bg-gray-50 rounded-lg border border-gray-100">
              <div class="text-xs text-gray-500 mb-1">关联教程</div>
              <a href="#" class="text-sm text-primary hover:underline">《Python字符串处理进阶》</a>
            </div>
            
            <div class="flex justify-between items-center">
              <div class="flex items-center gap-1 text-amber-500 text-sm">
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star-o"></i>
                <span class="text-gray-500 ml-1">4.0 (96)</span>
              </div>
              <button class="text-sm bg-primary/10 text-primary px-3 py-1 rounded-lg hover:bg-primary/20 transition-colors">
                立即使用
              </button>
            </div>
          </div>
          
          <!-- 工具3 -->
          <div class="bg-white rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow border border-gray-100 card-hover">
            <div class="flex justify-between items-start mb-4">
              <div class="flex items-center gap-2">
                <div class="w-10 h-10 bg-python/10 rounded-lg flex items-center justify-center">
                  <i class="fa fa-download text-python"></i>
                </div>
                <h4 class="font-bold">网络资源下载器</h4>
              </div>
              <button class="text-gray-400 hover:text-primary transition-colors">
                <i class="fa fa-star-o"></i>
              </button>
            </div>
            <p class="text-gray-600 text-sm mb-4">一键下载图片、视频、文档，支持批量操作和自动分类</p>
            
            <!-- 关联教程 -->
            <div class="mb-4 p-3 bg-gray-50 rounded-lg border border-gray-100">
              <div class="text-xs text-gray-500 mb-1">关联教程</div>
              <a href="#" class="text-sm text-primary hover:underline">《Python网络爬虫实战》</a>
            </div>
            
            <div class="flex justify-between items-center">
              <div class="flex items-center gap-1 text-amber-500 text-sm">
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <span class="text-gray-500 ml-1">5.0 (156)</span>
              </div>
              <button class="text-sm bg-primary/10 text-primary px-3 py-1 rounded-lg hover:bg-primary/20 transition-colors">
                立即使用
              </button>
            </div>
          </div>
        </div>
        
        <div class="text-center mt-10">
          <a href="#" class="inline-flex items-center gap-2 text-primary font-medium hover:underline">
            浏览全部工具 <i class="fa fa-arrow-right"></i>
          </a>
        </div>
      </div>
    </section>

    <!-- 4. 创意对接 - 核心板块 -->
    <section id="ideas" class="py-16 bg-white">
      <div class="container mx-auto px-4">
        <div class="text-center mb-12">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4">创意对接平台</h2>
          <p class="text-gray-600 max-w-2xl mx-auto">将你的创意变为现实，或参与他人项目，积累实战经验</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
          <!-- 创意需求1 -->
          <div class="bg-white rounded-xl p-6 border border-gray-100 shadow-sm hover:shadow-md transition-shadow card-hover">
            <div class="flex justify-between items-start mb-4">
              <div class="flex items-center gap-2">
                <div class="w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center">
                  <i class="fa fa-shopping-cart text-green-600"></i>
                </div>
                <div>
                  <h4 class="font-bold">电商数据监控工具</h4>
                  <span class="text-xs text-gray-500">需求对接</span>
                </div>
              </div>
              <span class="bg-blue-100 text-blue-700 text-xs px-2 py-1 rounded-full">Python</span>
            </div>
            <p class="text-gray-600 text-sm mb-4">
              需要一个能监控多家电商平台商品价格、库存变化的工具，支持数据导出和预警功能。
            </p>
            <div class="flex justify-between items-center text-sm mb-4">
              <div class="flex items-center gap-1 text-gray-500">
                <i class="fa fa-user"></i> 张先生 · 电商运营
              </div>
              <div class="flex items-center gap-1 text-gray-500">
                <i class="fa fa-clock-o"></i> 发布于3天前
              </div>
            </div>
            <button class="w-full py-2 border border-primary text-primary rounded-lg hover:bg-primary/5 transition-colors text-sm">
              我能实现这个需求
            </button>
          </div>
          
          <!-- 创意项目1 -->
          <div class="bg-white rounded-xl p-6 border border-gray-100 shadow-sm hover:shadow-md transition-shadow card-hover">
            <div class="flex justify-between items-start mb-4">
              <div class="flex items-center gap-2">
                <div class="w-10 h-10 bg-purple-100 rounded-lg flex items-center justify-center">
                  <i class="fa fa-line-chart text-purple-600"></i>
                </div>
                <div>
                  <h4 class="font-bold">个人财务分析系统</h4>
                  <span class="text-xs text-gray-500">开源项目</span>
                </div>
              </div>
              <span class="bg-green-100 text-green-700 text-xs px-2 py-1 rounded-full">招募合作者</span>
            </div>
            <p class="text-gray-600 text-sm mb-4">
              正在开发一个个人财务分析工具，已完成数据录入模块，寻找擅长数据可视化的开发者合作。
            </p>
            <div class="flex justify-between items-center text-sm mb-4">
              <div class="flex items-center gap-1 text-gray-500">
                <i class="fa fa-user"></i> 李同学 · 计算机专业
              </div>
              <div class="flex items-center gap-1 text-gray-500">
                <i class="fa fa-users"></i> 已有2人参与
              </div>
            </div>
            <button class="w-full py-2 border border-primary text-primary rounded-lg hover:bg-primary/5 transition-colors text-sm">
              加入开发团队
            </button>
          </div>
          
          <!-- 创意需求2 -->
          <div class="bg-white rounded-xl p-6 border border-gray-100 shadow-sm hover:shadow-md transition-shadow card-hover">
            <div class="flex justify-between items-start mb-4">
              <div class="flex items-center gap-2">
                <div class="w-10 h-10 bg-amber-100 rounded-lg flex items-center justify-center">
                  <i class="fa fa-graduation-cap text-amber-600"></i>
                </div>
                <div>
                  <h4 class="font-bold">学习计划生成器</h4>
                  <span class="text-xs text-gray-500">需求对接</span>
                </div>
              </div>
              <span class="bg-blue-100 text-blue-700 text-xs px-2 py-1 rounded-full">Python</span>
            </div>
            <p class="text-gray-600 text-sm mb-4">
              根据用户输入的学习目标和时间，自动生成个性化学习计划，支持进度跟踪和调整。
            </p>
            <div class="flex justify-between items-center text-sm mb-4">
              <div class="flex items-center gap-1 text-gray-500">
                <i class="fa fa-user"></i> 王老师 · 培训机构
              </div>
              <div class="flex items-center gap-1 text-gray-500">
                <i class="fa fa-clock-o"></i> 发布于1天前
              </div>
            </div>
            <button class="w-full py-2 border border-primary text-primary rounded-lg hover:bg-primary/5 transition-colors text-sm">
              我能实现这个需求
            </button>
          </div>
        </div>
        
        <div class="mt-10 flex justify-center gap-4">
          <a href="#" class="inline-flex items-center gap-2 px-5 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">
            发布创意/需求
          </a>
          <a href="#" class="inline-flex items-center gap-2 px-5 py-2 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">
            浏览全部项目
          </a>
        </div>
      </div>
    </section>

    <!-- 5. 学习社区 - 辅助板块 -->
    <section id="community" class="py-16 bg-neutral">
      <div class="container mx-auto px-4">
        <div class="text-center mb-12">
          <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-4">学习社区</h2>
          <p class="text-gray-600 max-w-2xl mx-auto">与志同道合的学习者一起成长，分享经验，解决问题</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
          <!-- 学习案例1 -->
          <div class="bg-white rounded-xl p-6 card-hover">
            <div class="flex items-center gap-4 mb-6">
              <img src="https://picsum.photos/id/1005/60/60" alt="用户头像" class="w-12 h-12 rounded-full">
              <div>
                <h4 class="font-bold">李会计</h4>
                <p class="text-sm text-gray-500">通过Excel自动化课程</p>
              </div>
            </div>
            <p class="text-gray-600 mb-4">
              "跟着平台的Python+Excel教程学习，现在能用工具自动生成报表，每天节省2小时，已经被领导表扬了！"
            </p>
            <div class="flex flex-wrap gap-2">
              <span class="text-xs bg-blue-100 text-blue-700 px-2 py-1 rounded">Excel自动化</span>
              <span class="text-xs bg-green-100 text-green-700 px-2 py-1 rounded">职场应用</span>
            </div>
          </div>
          
          <!-- 学习案例2 -->
          <div class="bg-white rounded-xl p-6 card-hover">
            <div class="flex items-center gap-4 mb-6">
              <img src="https://picsum.photos/id/1012/60/60" alt="用户头像" class="w-12 h-12 rounded-full">
              <div>
                <h4 class="font-bold">王同学</h4>
                <p class="text-sm text-gray-500">完成Python爬虫项目</p>
              </div>
            </div>
            <p class="text-gray-600 mb-4">
              "跟着爬虫教程做了个房价分析工具，帮家里选房省了不少事。现在在创意对接区接到了第一个付费小项目！"
            </p>
            <div class="flex flex-wrap gap-2">
              <span class="text-xs bg-purple-100 text-purple-700 px-2 py-1 rounded">爬虫开发</span>
              <span class="text-xs bg-amber-100 text-amber-700 px-2 py-1 rounded">项目实战</span>
            </div>
          </div>
          
          <!-- 学习案例3 -->
          <div class="bg-white rounded-xl p-6 card-hover">
            <div class="flex items-center gap-4 mb-6">
              <img src="https://picsum.photos/id/1025/60/60" alt="用户头像" class="w-12 h-12 rounded-full">
              <div>
                <h4 class="font-bold">张老师</h4>
                <p class="text-sm text-gray-500">教学者 · 发布3个教程</p>
              </div>
            </div>
            <p class="text-gray-600 mb-4">
              "在平台分享了我的数据分析教程，没想到有这么多学习者交流反馈，现在已经和3家企业达成了合作！"
            </p>
            <div class="flex flex-wrap gap-2">
              <span class="text-xs bg-red-100 text-red-700 px-2 py-1 rounded">教程创作</span>
              <span class="text-xs bg-indigo-100 text-indigo-700 px-2 py-1 rounded">合作机会</span>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 6. 行动召唤区 - 强化核心价值 -->
    <section class="py-20 bg-gradient-to-r from-primary to-blue-600">
      <div class="container mx-auto px-4 text-center">
        <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-white mb-6">
          开始你的技术学习之旅
        </h2>
        <p class="text-white/80 max-w-2xl mx-auto mb-10 text-lg">
          注册即可获取3门精选入门教程和5个实用工具，边学边用，快速掌握核心技能
        </p>
        <div class="flex flex-col sm:flex-row gap-4 justify-center">
          <a href="#register" class="px-8 py-4 bg-white text-primary rounded-lg font-medium hover:bg-gray-100 transition-colors shadow-lg">
            免费注册 · 立即学习
          </a>
          <a href="#tutorials" class="px-8 py-4 bg-transparent text-white border border-white rounded-lg font-medium hover:bg-white/10 transition-colors">
            浏览全部教程
          </a>
        </div>
      </div>
    </section>
  </main>

  <!-- 页脚 -->
  <footer class="bg-dark text-white/70 py-12">
    <div class="container mx-auto px-4">
      <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
        <div>
          <div class="flex items-center gap-2 mb-4">
            <div class="w-10 h-10 rounded-lg bg-white flex items-center justify-center">
              <i class="fa fa-code text-primary text-xl"></i>
            </div>
            <span class="text-xl font-bold text-white">CodeCraft</span>
          </div>
          <p class="text-sm">
            技术教程 · 实用工具 · 创意对接<br>
            让每个人都能掌握实用技术
          </p>
        </div>
        
        <div>
          <h4 class="text-white font-bold mb-4">学习资源</h4>
          <ul class="space-y-2 text-sm">
            <li><a href="#" class="hover:text-white transition-colors">教程中心</a></li>
            <li><a href="#" class="hover:text-white transition-colors">实战项目</a></li>
            <li><a href="#" class="hover:text-white transition-colors">学习路径</a></li>
            <li><a href="#" class="hover:text-white transition-colors">技能评估</a></li>
          </ul>
        </div>
        
        <div>
          <h4 class="text-white font-bold mb-4">平台功能</h4>
          <ul class="space-y-2 text-sm">
            <li><a href="#" class="hover:text-white transition-colors">工具库</a></li>
            <li><a href="#" class="hover:text-white transition-colors">创意对接</a></li>
            <li><a href="#" class="hover:text-white transition-colors">学习社区</a></li>
            <li><a href="#" class="hover:text-white transition-colors">讲师入驻</a></li>
          </ul>
        </div>
        
        <div>
          <h4 class="text-white font-bold mb-4">联系我们</h4>
          <ul class="space-y-2 text-sm">
            <li class="flex items-center gap-2">
              <i class="fa fa-weixin"></i>
              <span>CodeCraft官方</span>
            </li>
            <li class="flex items-center gap-2">
              <i class="fa fa-github"></i>
              <span>GitHub仓库</span>
            </li>
            <li class="flex items-center gap-2">
              <i class="fa fa-envelope"></i>
              <span>contact@codecraft.com</span>
            </li>
          </ul>
        </div>
      </div>
      
      <div class="border-t border-white/10 pt-8 text-sm text-center">
        <p>© 2023 CodeCraft 版权所有 | 技术教程与工具创作平台</p>
      </div>
    </div>
  </footer>

  <!-- 交互脚本 -->
  <script>
    // 导航栏滚动效果
    const navbar = document.getElementById('navbar');
    window.addEventListener('scroll', () => {
      if (window.scrollY > 50) {
        navbar.classList.add('py-2', 'shadow');
        navbar.classList.remove('py-3');
      } else {
        navbar.classList.add('py-3');
        navbar.classList.remove('py-2', 'shadow');
      }
    });
    
    // 移动端菜单切换
    const menuBtn = document.getElementById('menuBtn');
    const mobileMenu = document.getElementById('mobileMenu');
    menuBtn.addEventListener('click', () => {
      mobileMenu.classList.toggle('hidden');
      menuBtn.innerHTML = mobileMenu.classList.contains('hidden') 
        ? '<i class="fa fa-bars"></i>' 
        : '<i class="fa fa-times"></i>';
    });
    
    // 平滑滚动
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
      anchor.addEventListener('click', function(e) {
        e.preventDefault();
        const targetId = this.getAttribute('href');
        if (targetId === '#') return;
        
        const targetElement = document.querySelector(targetId);
        if (targetElement) {
          window.scrollTo({
            top: targetElement.offsetTop - 80,
            behavior: 'smooth'
          });
          
          // 关闭移动端菜单
          if (!mobileMenu.classList.contains('hidden')) {
            mobileMenu.classList.add('hidden');
            menuBtn.innerHTML = '<i class="fa fa-bars"></i>';
          }
        }
      });
    });
  </script>
</body>
</html>
